package com.example.sls.service.impl.field;

import com.example.sls.pojo.field.FieldBookings;
import com.example.sls.dao.field.FieldBookingsDao;
import com.example.sls.service.intserfaces.field.FieldBookingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 场地预约表(FieldBookings)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:03
 */
@Service
public class FieldBookingsServiceImpl implements FieldBookingsService {
  @Autowired
  FieldBookingsDao fieldBookingsDao;

  @Override
  public FieldBookings queryById(Integer id) {
    return fieldBookingsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return fieldBookingsDao.deleteById(id);
  }

  @Override
  public int update(FieldBookings fieldBookings) {
    return fieldBookingsDao.update(fieldBookings);
  }

  @Override
  public int insert(FieldBookings fieldBookings) {
    return fieldBookingsDao.insert(fieldBookings);
  }

  @Override
  public long count() {
    return fieldBookingsDao.count();
  }

  @Override
  public List<FieldBookings> queryAllByLimit(FieldBookings fieldBookings, Integer pageSize, Integer offset) {
    return fieldBookingsDao.queryAllByLimit(fieldBookings, pageSize, offset);
  }
}
